package com.pinyoumei.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/view")
public class IndexController {
	
	
	/**
	 * localhost:8880/view/index
	 * 跳转到首页
	 * @return
	 */
	@RequestMapping("/index")
	public String index(){
		return "index";
	}

	/**
	 * 跳转到注册页面
	 * @return
	 */
	@RequestMapping("/register")
	public String register(){
		return "register";
	}
	
	/**
	 * 跳转到登录页面
	 * @return
	 */
	@RequestMapping("/login")
	public String login(){
		return "login";
	}
	
	/**
	 * 跳转到支付页面
	 * @return
	 */
	@RequestMapping("/pay")
	public String pay(){
		return "pay/welcome";
	}
	
	/**
	 * 跳转到商城首页
	 * @return
	 */
	@RequestMapping("/portal")
	public String portal(){
		return "pinyoumei";
	}
	
	/**
	 * 跳转到购物车页面
	 * @return
	 */
	@RequestMapping("/mycart")
	public String cart(){
		return "cart";
	}
	
	
}
